import React from 'react';
import Home from './views/home/Home'
import List from './views/list/List'
import 'antd-mobile/dist/antd-mobile.css';
import "assets/style/common.css";
import { BrowserRouter as Router, Route, Redirect, Switch } from 'react-router-dom'

function App() {
  return (
    <Router>
      <Switch>
        <Route path="/home" component={Home}></Route>
        <Route path="/list" component={List}></Route>
        <Redirect exact from="/" to="/home"></Redirect>
      </Switch>
    </Router>
  );
}

export default App;
